<template>
  <div>
    <div class="cart">
      <div>
        <img :src="cardList.pic" alt="" />
      </div>
      <div class="right-box">
        <div class="top">
          <p v-html="cardList.name"></p>
          <b v-html="cardList.characteristic"></b>
        </div>
        <div class="bottom">
          <article>
            <p class="p">{{ cardList.minPrice }}￥</p>
            <span>底价</span>
          </article>
          <article>
            <p>{{ cardList.originalPrice }}￥</p>
            <span>原价</span>
          </article>
          <article>
            <p>{{ cardList.stores }}件</p>
            <span>限量</span>
          </article>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["cardList"],

  data() {
    return {};
  },
  mounted() {
  },
  methods: {},
  components: {},
};
</script>

<style lang="scss" scoped>
.right-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart {
  width: 100%;
  height: 258px;
  background-color: #fff;
  border-top: 1px solid rgb(206, 203, 203);
  display: flex;
  padding: 15px 10px;
  img {
    width: 240px;
    height: 100%;
    border-radius: 5%;
  }
  .top {
    margin-left: 33px !important;
    p,
    b {
      font-size: 26px;
    }
    b {
      margin-bottom: 20px;
      color: #ccc;
    }
  }

  .bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  .p {
    color: red;
    font-weight: 700;
  }
  article {
    color: rgb(133, 128, 128);
    p {
      font-size: 26px;
    }
  }
}
span {
  font-size: 26px;
}
</style>
